import Cookies from "js-cookie";

const TokenKey = "Admin-Token";

export function getToken() {
  //   return `eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjcyYmE2ZTM0LWY4MDAtNGExNi04ZTZmLTM3MWUwODE5YjMyZSJ9.4kPNpTJfgc_v4ZuQ8b0AhJO_ZyiGHQsMJPFcI6zdENrU2tCbr7O681wJJVdvBe6yM04DlXInHdfH_b-t8RMD-g`;
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}
